<?php
/**
 * Created by PhpStorm.
 * User: weichen
 * Date: 2017/5/7
 * Time: 18:26
 */

namespace Tea\Model;


use Common\Model\CommonModel;

class TeaModel extends CommonModel
{
    const STATUS_ON = 0;//进行中
    const STATUS_OK = 1;//已完成

    /**
     * @param $status
     * @return string
     */
    public function statusToString($status) {
        switch ($status) {
            case self::STATUS_ON:
                return '进行中';
                break;
            case self::STATUS_OK:
                return '已完成';
            break;
            default:
                return '';
            break;
        }
    }
}